<style>
    .form-group label{width:100px}
    .task .form-group{width: 90%;}
</style>
<section class="content task" >
    <div class="row">
        <div class="col-md-12">
            <div class="box box-danger">
                <div class="box-body">
                    <form id="task_finish_editinfo_form">
                        <input type="hidden" name="id" value="{$id}" />
                        <div class="form-group">
                            <label style="display:inline-table">说明
                                <i class="fa fa-pencil-square-o"></i>:</label>
                            <textarea name="note" rows="4" cols="60"></textarea>
                        </div>
                        <div style="clear: both;margin-bottom: 40px"></div>
                        <div class="box-footer">
                            <span class="input-group-btn">
                                <button class="btn btn-danger pull-left" type="button"  id="close-dialog">取消</button>
                                <button class="btn btn-primary pull-right" type="button" id='task_finish_form_submit'>提交</button>
                            </span>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">

        $(function () {
            $('#task_finish_form_submit').click(function () {
                publicEditinfoFormSubmit();
            });
        });

        function publicEditinfoFormSubmit() {
            $.post("{:U('Task/finish')}",
                    $("#task_finish_editinfo_form").serialize(), function (res) {
                if (!res.status) {
                    $.messager.alert('提示信息', res.info, 'error');
                } else {
                    $.messager.alert('提示信息', res.info, 'info');
                    dialog.get('dialogPage').close().remove();
                    taskTable.fnDraw(false);
                }
            });
            return false;
        }
    </script>
</section>